#ifndef _OVERLOADINGARRAY_H
#define _OVERLOADINGARRAY_H

#include <iostream>
using namespace std;
using std::ostream;
using std::istream;

class Array{	
	friend istream &operator>>(istream &, Array &);
	friend ostream &operator<<(ostream &, const Array &);
	public:
		Array(int=10);
		Array(const Array &);
		~Array();
		int getSize() const;
		int *getPtr() const;
		const Array &operator=(const Array&);
		bool operator==(const Array &) const;
		bool operator!=(const Array &right) const
		{
			return !(*this == right);
		}
		int &operator[](int);
		const int &operator[](int) const;
	private:
		int size;
		int *ptr;
};

#endif

